#pragma once

#include "stdafx.h"

class SoundManager
{
private:
	LPDIRECTSOUND8 directSound8;
public:
	static SoundManager* sound;
	//
	// Property
	LPDIRECTSOUND8 GetDirectSound8() {return this->directSound8;}
		
	
	int Init(HWND);
	int Release();
	// Create secondary sound buffer
	LPDIRECTSOUNDBUFFER8 CreateSoundBuffer(mad_pcm *pcm, int &bufferSize);


	SoundManager(void);
	~SoundManager(void);
};

